package com.barunsw.bwf.ems.sample;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.barunsw.bwf.ems.dto.SampleVo;

@Service
public class SampleServiceImpl implements SampleService {
	
	private static final Logger logger = LoggerFactory.getLogger(SampleServiceImpl.class);

	@Autowired
	SampleDao sampleDao;

	@Override
	public List<SampleVo> getSampleList() {
		return sampleDao.selectSampleList();
	}

	
	@Override
	public SampleVo getSample(long seq) {
		return sampleDao.selectSample(seq);
	}

	
	@Override
	public int insertSample(SampleVo sampleVo) {
		return sampleDao.insertSample(sampleVo);
	}

	
	@Override
	public int deleteSample(long seq) {
		return sampleDao.deleteSample(seq);
	}
}
